#include "point.h"
#include "handle.h"
#include <iostream>
using namespace std;
int main()
{
    Point p(1, 2);
    Handle h(p);
    cout << "Handle0 " << &h << endl;
    Handle h1(h);
    cout << "Handle1 " << &h1 << endl;
    Handle h2 = h1;
    cout << "Handle2 " << &h2 << endl;
    cout << "h2.x " << h2.x() << " h2.y" << h2.y() << endl;
    // Handle h1 = h;
    // h.x(7);
    // h.y(8);
    // cout << "h.x " << h.x() << " h.y " << h.y() << endl;
    // cout << "h1.x " << h1.x() << " h1.y " << h1.y() << endl;
    return 0;
}
